package com.gxa.zhonglong.mapper;

import com.gxa.zhonglong.pojo.StoreBarter;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author wanjun
 * @version 1.0
 * @date 2021/10/30 13:59
 */
public interface StoreReturnMapper {
    //查询全部退货单
    public List<StoreBarter> selectAll(Integer offset, Integer size);
    //获得count
    public List<StoreBarter> selectAll2();
    //多条件查询退货单(分页)
    public List<StoreBarter> selectByField(Timestamp from, Timestamp to, String storeBarterGclass,
                                           String storeBarterNews, String storeBarterNewc, String storeBarterOlds,
                                           String storeBarterOldc, String storeBarterCusername, Integer offset, Integer size);
    //获得count
    public List<StoreBarter> selectByField2(Timestamp from, Timestamp to, String storeBarterGclass,
                                            String storeBarterNews, String storeBarterNewc, String storeBarterOlds,
                                            String storeBarterOldc, String storeBarterCusername);
    //添加调拨
    public void add(StoreBarter storeBarter) ;
    //添加调拨关联表
    public void addCo(String storeBarterNum, List<String> goodsCoding);
}
